@namespace Microsoft.FluentUI.AspNetCore.Components
@typeparam Emoji
@inherits FluentComponentBase

@if (ContainsSVG())
{
    <svg id="@Id" slot="@Slot" class="@ClassValue" style="@StyleValue" focusable="false" viewBox="@($"0 0 {((int)_emoji.Size)} {((int)_emoji.Size)}")" aria-hidden="true" @onclick="@OnClickHandlerAsync" @attributes="@AdditionalAttributes">
        @if (!string.IsNullOrEmpty(Title))
        {
            <title>@Title</title>
        }
        @((MarkupString)@_emoji.Content)
    </svg>
}
else
{
    <div id="@Id" slot="@Slot" class="@ClassValue" style="@StyleValue" title="@Title" @attributes="@AdditionalAttributes" @onclick="@OnClickHandlerAsync">@((MarkupString)@_emoji.Content)</div>
}